public class User {
    String name;
    Address addr;

    public User() {
    }

    public User(String name, Address addr) {
        this.name = name;
        this.addr = addr;
    }
    public boolean equals (Object obj) {
        if(obj == null || !(obj instanceof User)) {
            return false;
        }
        User u1 = (User)obj;
        return this.name.equals(u1.name) && this.addr.city.equals(u1.addr.city) &&this.addr.street.equals(u1.addr.street) ;
    }
    public finalize
}
